package com.css.openapi.BO;


import com.css.common.core.annotation.Related;
import com.css.common.core.annotation.Relatively;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author xlw
 * @description:
 * @title: NcpOrderAuditBO
 * @package com.invoice.tcc.BO
 * @date 2025/4/28 15:39
 */
@Related(message = "订单编号和业务流水号不能全为空", relativelys = {@Relatively(field1 = "ddbh", field2 = "ywlsh")})
@NoArgsConstructor
@Data
public class NcpOrderAuditBO {

    /**
     * 反向开票服务平台订单号
     */
    //@NotBlank(message = "订单编号不能为空")
    private String ddbh;
    /**
     * 业务流水号
     */
    //@NotBlank(message = "业务流水号")
    private String ywlsh;
    /**
     * 商户绑定编号
     */
    @NotBlank(message = "商户绑定编号不能为空")
    private String shbdbh;
    /**
     * 审核标志
     */
    @NotNull(message = "审核标志不能为空")
    @Range(max = 1, min = 0, message = "审核标志必须是1或者0")
    private Integer shbz;

    /**
     * 业务类型
     */
    @NotBlank(message = "业务类型不能为空")
    private String ywlx;

    /**
     * 不通过原因
     */
    private String btgyy;
}
